package day14;

public class homework006 extends Thread{
    @Override
    public synchronized void run() {
        System.out.println(getName()+"开始复制");
        for (int i = 10; i <= 100; i+=10) {
            System.out.printf(Thread.currentThread().getName() + "已经复制了%d了\n",i);
            try {
                sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println(Thread.currentThread().getName()+"复制完毕");
    }
}
